package com.foreveross.taskservice.application.impl.Util;

import java.util.Collection;

import com.foreveross.taskservice.common.model.AbstractTaskModel;

/**
 * 模型精简化工具类
 * 
 * @author guokenye
 *
 */
public class TaskModelSimplifyUtil {

	
	/**
	 * 精简actions
	 * @param model
	 */
	public static void cleanActions(AbstractTaskModel model){
		model.clearActions();
	}
	
	public static void cleanActions(Collection<AbstractTaskModel> models){
		
		for(AbstractTaskModel m:models){
			cleanActions(m);
		}
	}
}
